﻿using System.ComponentModel.DataAnnotations;
using GlobalResources;

namespace ContactMvc4TB.Models.Worktime.Helpers
{
    /// <summary>
    /// Ein einzelner Projekteintrag
    /// </summary>
    public class ProjectEntry
    {
        /// <summary>
        /// Aktuelle Projekt Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// Der Name des Projektes
        /// </summary>
        [Display(Name = "Name", ResourceType = typeof(WorktimeViews))]
        [Required]
        [MaxLength(300)]
        public string Name { get; set; }

        /// <summary>
        /// Die Sortierreihenfolge der Einträge
        /// </summary>
        [Display(Name = "SortOrder", ResourceType = typeof(WorktimeViews))]
        [MaxLength(40)]
        public string Sortorder { get; set; }

        /// <summary>
        /// Die Beschreibung des Eintrags
        /// </summary>
        [Display(Name = "Description", ResourceType = typeof(WorktimeViews))]
        [MaxLength(1000)]
        public string Description { get; set; }

        /// <summary>
        /// Gibt an ob der Eintrag in der Liste noch angezeigt werden soll.
        /// </summary>
        [Display(Name = "ShowEntry", ResourceType = typeof(WorktimeViews))]
        public bool ShowEntry { get; set; }
    }
}